Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: document fmt in GNU extensions #4748

Merged

Conversation

cakebaker
Copy link
Contributor

No description provided.

@github-actions
Copy link

GNU testsuite comparison:

Congrats! The gnu test tests/tail-2/inotify-dir-recreate is no longer failing!

Comment on lines +49 to +52
`fmt` has additional flags for prefixes: `-P/--skip-prefix`, `-x/--exact-prefix`, and
`-X/--exact-skip-prefix`. With `-m/--preserve-headers`, an attempt is made to detect and preserve
mail headers in the input. `-q/--quick` breaks lines more quickly. And `-T/--tab-width` defines the
number of spaces representing a tab when determining the line length.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we know whether these options were inspired by other implementations? It might be nice to mention those if there are any.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know where the inspiration for those flags came from. The coreutils implementations mentioned in https:/uutils/coreutils/blob/main/CONTRIBUTING.md don't have fmt implementations.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm indeed. It seems to be added here: #272 (comment), but the author seems to have invented them, which is alright.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's 9 years ago, but maybe they remember. @kwantam, do you remember whether these options exist elsewhere?

@sylvestre sylvestre merged commit 20a1ed7 into uutils:main Apr 21, 2023
@cakebaker cakebaker deleted the docs_document_fmt_in_gnu_extensions branch April 21, 2023 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants